import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:yi_shop/utils/colors.dart';
import 'package:yi_shop/utils/styles.dart';
import 'package:yi_shop/utils/tools.dart';

class InvoiceExplainController extends GetxController {}

class InvoiceExplainPage extends GetView<InvoiceExplainController> {
  const InvoiceExplainPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        leading: ToolsUtils.builderLeading(),
        title: Text(
          '发票说明',
          style: StylesUtils.customTextStyle(
              fontWeight: FontWeight.w700, fontSize: StylesUtils.fontSize18),
        ),
        elevation: 1,
        shadowColor: ColorsUtils.rgba(242, 242, 242, 1),
      ),
      body: SingleChildScrollView(
        padding: EdgeInsets.symmetric(vertical: 10.h, horizontal: 15.w),
        child: Column(
          children: [
            Container(
              alignment: Alignment.centerLeft,
              child: Text(
                '发票助手是什么？',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color3333, fontSize: StylesUtils.fontSize16),
              ),
            ),
            Container(
              margin: const EdgeInsets.only(top: 15, bottom: 30),
              child: Text(
                '统一管理用户的电子发票。现阶段用户在本商城购买自营商品时，如果开具电子发票，则自动保存至发票助手。',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color6666,
                    fontSize: StylesUtils.fontSize13,
                    lineHeight: 1.4.h),
              ),
            ),
            Container(
              alignment: Alignment.centerLeft,
              child: Text(
                '什么是电子发票？',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color3333, fontSize: StylesUtils.fontSize16),
              ),
            ),
            Container(
              margin: const EdgeInsets.only(top: 15, bottom: 30),
              child: Text(
                '它是信息时代的产物，全称为增值税电子普通发票，由税务局统一发放。顾名思义，为电子版本的增值税普通发票，其法律效力、基本用途都与纸质发票相同。',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color6666,
                    fontSize: StylesUtils.fontSize13,
                    lineHeight: 1.4.h),
              ),
            ),
            Container(
              alignment: Alignment.centerLeft,
              child: Text(
                '电子发票如何开具？',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color3333, fontSize: StylesUtils.fontSize16),
              ),
            ),
            Container(
              margin: const EdgeInsets.only(top: 15, bottom: 30),
              child: Text(
                '纳税人通过互联网，利用税务机关提供的发票在线应用系统开具发票。',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color6666,
                    fontSize: StylesUtils.fontSize13,
                    lineHeight: 1.4.h),
              ),
            ),
            Container(
              alignment: Alignment.centerLeft,
              child: Text(
                '电子发票的好处？',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color3333, fontSize: StylesUtils.fontSize16),
              ),
            ),
            Container(
              margin: const EdgeInsets.only(top: 15, bottom: 30),
              child: Text(
                '对国家来说，减少森林的砍伐，更加的环保。对商家来说，节省发票工本费、税控机成本以及相关人力成本。对用户来说，保管、查询、调阅时更加方便，且便于商家为用户提供更加方便的服务，并可报销入账（具体报销政策需要遵守公司政策规定）。',
                style: StylesUtils.customTextStyle(
                    color: ColorsUtils.color6666,
                    fontSize: StylesUtils.fontSize13,
                    lineHeight: 1.4.h),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
